/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.admin.api.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 平台用户
 *
 * @author pigx code generator
 * @date 2022-08-08 15:07:46
 */
@Data
@TableName("user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "平台用户")
public class ToCUser extends Model<ToCUser> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value="主键")
	private Long id;

	/**
	 * 父级id
	 */
	@ApiModelProperty(value="父级id")
	private Long parentId;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(value="邮箱")
	private String email;

	/**
	 * 用户名
	 */
	@ApiModelProperty(value="用户名")
	private String userName;

	/**
	 * 密码
	 */
	@ApiModelProperty(value="密码")
	private String password;

	/**
	 * 用户等级(0 普通用户 1 一级节点 2 二级节点 3 三级节点 4 超级节点)
	 */
	@ApiModelProperty(value="用户等级(0 普通用户 1 一级节点 2 二级节点 3 三级节点 4 超级节点)")
	private Integer level;

	/**
	 * 是否禁用节点( 0 否 1 是)
	 */
	@ApiModelProperty(value="是否禁用节点( 0 否 1 是)")
	private String isDisableLevel;

	/**
	 * 是否激活 ( 0 否 1 是 )
	 */
	@ApiModelProperty(value="是否激活 ( 0 否 1 是 )")
	private String isActivation;

	/**
	 * 头像
	 */
	@ApiModelProperty(value="头像")
	private String headPortrait;

	/**
	 * 直接邀请人数
	 */
	@ApiModelProperty(value="直接邀请人数")
	private Integer directInvitationCount;

	/**
	 * 间接邀请人数
	 */
	@ApiModelProperty(value="间接邀请人数")
	private Integer indirectInvitationCount;

	/**
	 * 社区人数
	 */
	@ApiModelProperty(value="社区人数")
	private Integer communityCount;

	/**
	 * 邀请码
	 */
	@ApiModelProperty(value="邀请码")
	private String invitationCode;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value="创建人")
	private Long createBy;

	/**
	 * 修改人
	 */
	@ApiModelProperty(value="修改人")
	private Long updateBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@ApiModelProperty(value="修改时间")
	private LocalDateTime updateTime;

	/**
	 * 授权公链
	 */
	@ApiModelProperty(value = "授权公链")
	private String chain;

	/**
	 * 授权地址
	 */
	@ApiModelProperty(value = "授权地址")
	private String address;

	/**
	 * 伞下用户总燃料消耗业绩(UNT)
	 */
	@ApiModelProperty(value = "伞下用户总燃料消耗业绩(UNT)")
	private BigDecimal achievementQuantity;

	/**
	 * 是否确认风险告知 0否 1是
	 */
	@ApiModelProperty(value = "是否确认风险告知 0否 1是")
	private String isConfrimRisk;

	/**
	 * 地址加签后参数
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "地址加签后参数")
	private String signature;

	/**
	 * 验证码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "验证码")
	private String userVerificationCode;

}
